import request from '@/router/axios';
import serviceList from '@/config/serviceList'
import {baseURL} from '@/api/common';

const {aihumanCore} = serviceList

export const getFontList = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/font/page`,
    method: 'post',
    data
  })
}
export const deleteFont = (params) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/font`,
    method: 'delete',
    params
  })
}

export const batchDelete = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/font/batch`,
    method: 'delete',
    data
  })
}
export const changeStatus = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/font/updateEnable`,
    method: 'post',
    data
  })
}
export const addOrUpdateFont = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/font/addOrUpdate`,
    method: 'post',
    data
  })
}
